package com.designpatterns.composite.component;

import java.util.List;

/**
 * Employer Abstract Class
 * 
 * @author Haiqi.Wang
 * @since 2013-5-31下午5:43:26
 */
public abstract class Employer {
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public abstract void add(Employer employer);
	
	public abstract void delete(Employer employer);
	
	public List<Employer> employers;
	
	public void printInfo(){
		System.out.println(name);
	}
	
	public List<Employer> getEmployers(){
		return this.employers;
	}
	
}
